package com.cn.dynamic;

public class Test {

	public static void main(String[] args) {
		ProductService ps = new ProductServiceImpl();
		UserService us = new UserServiceImpl();
		
		
		ProductService productProxy = ProxyFactory.getProxy(ps);
		UserService userProxy = ProxyFactory.getProxy(us);
		
		
		productProxy.addProducr();
		productProxy.deleteProducr();
		productProxy.updateProducr();
		productProxy.selectProducr();
		
		System.out.println("----------------------");
		
		userProxy.addUser();
		userProxy.deleteUser();
		userProxy.updateUser();
		userProxy.selectUser();
	}
}
